﻿<?php $this->load->view('layout/header'); ?>
<form name="form1" method="post" action="" id="form1">
    <div id="container">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_form">
            <tr class="table_form_title">
                <td colspan="4">复制产品</td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">目标栏目：</td>
                <td>
                    <select name="classid" id="classid">
                        <option value="0">请选择</option>
                        <?php foreach ($tree as $k =>$v){?>
                        <option value="<?php echo $k;?>"><?php echo $v;?></option>
                        <?php  } ?>
                    </select>
                    <span id="classid_tips" style="color:Red;display:none;">请选择</span>
                </td>
            </tr>
            <tr class="table_form_btn">
                <td align="right">&nbsp;
                    
                </td>
                <td colspan="3">
                    <input type="submit" name="btnSave" value="保存" id="btnSave" />
                    <input type="button" name="Submit" value="返回" onclick="javascript:history.go(-1);" />
                    <span id="errMsg" style="color:Red;"></span>
                </td>
            </tr>
        </table>
    </div>    
</form>
<script>
    $('#classid').change(function(){
        selete_tips($('#classid'));
    });
    $('#form1').submit(function() {
        var is = true;
        if (!selete_tips($('#classid'))) {
            is = false;
        }
        return is;
    });
</script>
<?php $this->load->view('layout/footer'); ?>
